<!DOCTYPE html>
<html lang="en"
xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<hr>
<h1 style="text-align: center">登录</h1>
<form style="text-align: center" th:action="@{/login}" method="post">
    <p style="color: red" th:text = "${msg}" th:if="${not #strings.isEmpty(msg)}" ></p><br>
  <input type="text" name="username" id="username" placeholder="Username"><br>
  <input type="password" name="password" id="password" placeholder="Password"><br>
  <input type="submit" value="Login">
</form>
</body>
</html>